#!/usr/bin/env python

# mirror_mirror.py

from __future__ import division

from ot_simulator.template import template_funs

def run(rosette_csv):
    template = template_funs.mirror(
                 template_funs.mirror(
                   template_funs.file_multi_num(rosette_csv),
                   True, True),
                 True)

    for x, y in template:
        print "{0},{1}".format(x, y)


if __name__ == "__main__":
    import sys
    if len(sys.argv) != 2:
        print >> sys.stderr, "usage: {0} rosette.csv".format(sys.argv[0])
        sys.exit(2)
    run(sys.argv[1])
